package com.n5x.model.shopping;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ShoppingOrderLogisticsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ShoppingOrderLogisticsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("ID like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("ID not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andFkShoppingOrderIdIsNull() {
            addCriterion("FK_SHOPPING_ORDER_ID is null");
            return (Criteria) this;
        }

        public Criteria andFkShoppingOrderIdIsNotNull() {
            addCriterion("FK_SHOPPING_ORDER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andFkShoppingOrderIdEqualTo(String value) {
            addCriterion("FK_SHOPPING_ORDER_ID =", value, "fkShoppingOrderId");
            return (Criteria) this;
        }

        public Criteria andFkShoppingOrderIdNotEqualTo(String value) {
            addCriterion("FK_SHOPPING_ORDER_ID <>", value, "fkShoppingOrderId");
            return (Criteria) this;
        }

        public Criteria andFkShoppingOrderIdGreaterThan(String value) {
            addCriterion("FK_SHOPPING_ORDER_ID >", value, "fkShoppingOrderId");
            return (Criteria) this;
        }

        public Criteria andFkShoppingOrderIdGreaterThanOrEqualTo(String value) {
            addCriterion("FK_SHOPPING_ORDER_ID >=", value, "fkShoppingOrderId");
            return (Criteria) this;
        }

        public Criteria andFkShoppingOrderIdLessThan(String value) {
            addCriterion("FK_SHOPPING_ORDER_ID <", value, "fkShoppingOrderId");
            return (Criteria) this;
        }

        public Criteria andFkShoppingOrderIdLessThanOrEqualTo(String value) {
            addCriterion("FK_SHOPPING_ORDER_ID <=", value, "fkShoppingOrderId");
            return (Criteria) this;
        }

        public Criteria andFkShoppingOrderIdLike(String value) {
            addCriterion("FK_SHOPPING_ORDER_ID like", value, "fkShoppingOrderId");
            return (Criteria) this;
        }

        public Criteria andFkShoppingOrderIdNotLike(String value) {
            addCriterion("FK_SHOPPING_ORDER_ID not like", value, "fkShoppingOrderId");
            return (Criteria) this;
        }

        public Criteria andFkShoppingOrderIdIn(List<String> values) {
            addCriterion("FK_SHOPPING_ORDER_ID in", values, "fkShoppingOrderId");
            return (Criteria) this;
        }

        public Criteria andFkShoppingOrderIdNotIn(List<String> values) {
            addCriterion("FK_SHOPPING_ORDER_ID not in", values, "fkShoppingOrderId");
            return (Criteria) this;
        }

        public Criteria andFkShoppingOrderIdBetween(String value1, String value2) {
            addCriterion("FK_SHOPPING_ORDER_ID between", value1, value2, "fkShoppingOrderId");
            return (Criteria) this;
        }

        public Criteria andFkShoppingOrderIdNotBetween(String value1, String value2) {
            addCriterion("FK_SHOPPING_ORDER_ID not between", value1, value2, "fkShoppingOrderId");
            return (Criteria) this;
        }

        public Criteria andFkUserTransactionIdIsNull() {
            addCriterion("FK_USER_TRANSACTION_ID is null");
            return (Criteria) this;
        }

        public Criteria andFkUserTransactionIdIsNotNull() {
            addCriterion("FK_USER_TRANSACTION_ID is not null");
            return (Criteria) this;
        }

        public Criteria andFkUserTransactionIdEqualTo(String value) {
            addCriterion("FK_USER_TRANSACTION_ID =", value, "fkUserTransactionId");
            return (Criteria) this;
        }

        public Criteria andFkUserTransactionIdNotEqualTo(String value) {
            addCriterion("FK_USER_TRANSACTION_ID <>", value, "fkUserTransactionId");
            return (Criteria) this;
        }

        public Criteria andFkUserTransactionIdGreaterThan(String value) {
            addCriterion("FK_USER_TRANSACTION_ID >", value, "fkUserTransactionId");
            return (Criteria) this;
        }

        public Criteria andFkUserTransactionIdGreaterThanOrEqualTo(String value) {
            addCriterion("FK_USER_TRANSACTION_ID >=", value, "fkUserTransactionId");
            return (Criteria) this;
        }

        public Criteria andFkUserTransactionIdLessThan(String value) {
            addCriterion("FK_USER_TRANSACTION_ID <", value, "fkUserTransactionId");
            return (Criteria) this;
        }

        public Criteria andFkUserTransactionIdLessThanOrEqualTo(String value) {
            addCriterion("FK_USER_TRANSACTION_ID <=", value, "fkUserTransactionId");
            return (Criteria) this;
        }

        public Criteria andFkUserTransactionIdLike(String value) {
            addCriterion("FK_USER_TRANSACTION_ID like", value, "fkUserTransactionId");
            return (Criteria) this;
        }

        public Criteria andFkUserTransactionIdNotLike(String value) {
            addCriterion("FK_USER_TRANSACTION_ID not like", value, "fkUserTransactionId");
            return (Criteria) this;
        }

        public Criteria andFkUserTransactionIdIn(List<String> values) {
            addCriterion("FK_USER_TRANSACTION_ID in", values, "fkUserTransactionId");
            return (Criteria) this;
        }

        public Criteria andFkUserTransactionIdNotIn(List<String> values) {
            addCriterion("FK_USER_TRANSACTION_ID not in", values, "fkUserTransactionId");
            return (Criteria) this;
        }

        public Criteria andFkUserTransactionIdBetween(String value1, String value2) {
            addCriterion("FK_USER_TRANSACTION_ID between", value1, value2, "fkUserTransactionId");
            return (Criteria) this;
        }

        public Criteria andFkUserTransactionIdNotBetween(String value1, String value2) {
            addCriterion("FK_USER_TRANSACTION_ID not between", value1, value2, "fkUserTransactionId");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("STATE is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("STATE is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(String value) {
            addCriterion("STATE =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(String value) {
            addCriterion("STATE <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(String value) {
            addCriterion("STATE >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(String value) {
            addCriterion("STATE <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(String value) {
            addCriterion("STATE <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLike(String value) {
            addCriterion("STATE like", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotLike(String value) {
            addCriterion("STATE not like", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<String> values) {
            addCriterion("STATE in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<String> values) {
            addCriterion("STATE not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(String value1, String value2) {
            addCriterion("STATE between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(String value1, String value2) {
            addCriterion("STATE not between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andLogisticsTimeIsNull() {
            addCriterion("LOGISTICS_TIME is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsTimeIsNotNull() {
            addCriterion("LOGISTICS_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsTimeEqualTo(Date value) {
            addCriterion("LOGISTICS_TIME =", value, "logisticsTime");
            return (Criteria) this;
        }

        public Criteria andLogisticsTimeNotEqualTo(Date value) {
            addCriterion("LOGISTICS_TIME <>", value, "logisticsTime");
            return (Criteria) this;
        }

        public Criteria andLogisticsTimeGreaterThan(Date value) {
            addCriterion("LOGISTICS_TIME >", value, "logisticsTime");
            return (Criteria) this;
        }

        public Criteria andLogisticsTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("LOGISTICS_TIME >=", value, "logisticsTime");
            return (Criteria) this;
        }

        public Criteria andLogisticsTimeLessThan(Date value) {
            addCriterion("LOGISTICS_TIME <", value, "logisticsTime");
            return (Criteria) this;
        }

        public Criteria andLogisticsTimeLessThanOrEqualTo(Date value) {
            addCriterion("LOGISTICS_TIME <=", value, "logisticsTime");
            return (Criteria) this;
        }

        public Criteria andLogisticsTimeIn(List<Date> values) {
            addCriterion("LOGISTICS_TIME in", values, "logisticsTime");
            return (Criteria) this;
        }

        public Criteria andLogisticsTimeNotIn(List<Date> values) {
            addCriterion("LOGISTICS_TIME not in", values, "logisticsTime");
            return (Criteria) this;
        }

        public Criteria andLogisticsTimeBetween(Date value1, Date value2) {
            addCriterion("LOGISTICS_TIME between", value1, value2, "logisticsTime");
            return (Criteria) this;
        }

        public Criteria andLogisticsTimeNotBetween(Date value1, Date value2) {
            addCriterion("LOGISTICS_TIME not between", value1, value2, "logisticsTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CREATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CREATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CREATE_TIME =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CREATE_TIME <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CREATE_TIME >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CREATE_TIME <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CREATE_TIME in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CREATE_TIME not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdateTimeIsNull() {
            addCriterion("LAST_UPDATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdateTimeIsNotNull() {
            addCriterion("LAST_UPDATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdateTimeEqualTo(Date value) {
            addCriterion("LAST_UPDATE_TIME =", value, "lastUpdateTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdateTimeNotEqualTo(Date value) {
            addCriterion("LAST_UPDATE_TIME <>", value, "lastUpdateTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdateTimeGreaterThan(Date value) {
            addCriterion("LAST_UPDATE_TIME >", value, "lastUpdateTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("LAST_UPDATE_TIME >=", value, "lastUpdateTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdateTimeLessThan(Date value) {
            addCriterion("LAST_UPDATE_TIME <", value, "lastUpdateTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("LAST_UPDATE_TIME <=", value, "lastUpdateTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdateTimeIn(List<Date> values) {
            addCriterion("LAST_UPDATE_TIME in", values, "lastUpdateTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdateTimeNotIn(List<Date> values) {
            addCriterion("LAST_UPDATE_TIME not in", values, "lastUpdateTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("LAST_UPDATE_TIME between", value1, value2, "lastUpdateTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("LAST_UPDATE_TIME not between", value1, value2, "lastUpdateTime");
            return (Criteria) this;
        }

        public Criteria andDisableIsNull() {
            addCriterion("DISABLE is null");
            return (Criteria) this;
        }

        public Criteria andDisableIsNotNull() {
            addCriterion("DISABLE is not null");
            return (Criteria) this;
        }

        public Criteria andDisableEqualTo(Boolean value) {
            addCriterion("DISABLE =", value, "disable");
            return (Criteria) this;
        }

        public Criteria andDisableNotEqualTo(Boolean value) {
            addCriterion("DISABLE <>", value, "disable");
            return (Criteria) this;
        }

        public Criteria andDisableGreaterThan(Boolean value) {
            addCriterion("DISABLE >", value, "disable");
            return (Criteria) this;
        }

        public Criteria andDisableGreaterThanOrEqualTo(Boolean value) {
            addCriterion("DISABLE >=", value, "disable");
            return (Criteria) this;
        }

        public Criteria andDisableLessThan(Boolean value) {
            addCriterion("DISABLE <", value, "disable");
            return (Criteria) this;
        }

        public Criteria andDisableLessThanOrEqualTo(Boolean value) {
            addCriterion("DISABLE <=", value, "disable");
            return (Criteria) this;
        }

        public Criteria andDisableIn(List<Boolean> values) {
            addCriterion("DISABLE in", values, "disable");
            return (Criteria) this;
        }

        public Criteria andDisableNotIn(List<Boolean> values) {
            addCriterion("DISABLE not in", values, "disable");
            return (Criteria) this;
        }

        public Criteria andDisableBetween(Boolean value1, Boolean value2) {
            addCriterion("DISABLE between", value1, value2, "disable");
            return (Criteria) this;
        }

        public Criteria andDisableNotBetween(Boolean value1, Boolean value2) {
            addCriterion("DISABLE not between", value1, value2, "disable");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}